<template>
  <div class="top">
    <!-- <van-nav-bar title="个人资料" left-arrow @click-left="onClickLeft" /> -->
    <van-nav-bar :title="type" left-arrow @click-left="onClickLeft" />
  </div>
</template>

<script>
export default {
  // props: ["type"],
  methods: {
    onClickLeft() {
      this.$router.push("/My");
    },
  },
};
</script>

<style scoped>
.top {
  width: 100%;
  background-color: #f5f5f5;
}
/deep/.van-nav-bar {
  background-color: #f5f5f5;
}
/deep/.van-nav-bar .van-icon {
  color: gray;
}
/deep/ .van-nav-bar__title {
  margin-left: 0.5rem;
}
</style>
